@import "../../styles/colors";

.cm-accordion {
  position: relative;
  background: #f7f7f7;
  border: 1px solid @color-border;
}

.cm-accordion{
  &.cm-accordion-bordered{
    border: 1px solid darken(@color-dark-lighter, 5%);
    border-radius: 3px;
  }
  .cm-accordion-item:last-child{
      border-bottom: 0;
  }
}
.cm-accordion-wrap {
  margin: 0;
  padding: 0;
}
.cm-accordion-item-head{
  height: 38px;
  line-height: 38px;
  cursor: pointer;
  padding-left: 16px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.cm-accordion-item-icon{
  margin-right: 6px;
}

.cm-accordion-item-body{
  background-color: #fff;
  height: 0;
  overflow: hidden;
  padding: 0 16px;
}
.cm-accordion-item-body.animation {
  transition: all 0.25s ease-in-out;
}
.cm-accordion-item-body-inner{
  padding: 16px 0;
}
.cm-accordion-header-arrow{
  transition: all 0.25s linear;
}
.cm-accordion-item{
  border-bottom: 1px solid @color-border;
}
.cm-accordion-item-active{
  .cm-accordion-item-head{
    border-bottom: 1px solid @color-border;
  }
  .cm-accordion-header-arrow{
    transform: rotate(90deg);
  }
  // .cm-accordion-item-body{
  //   height: auto;
  // }
}
